<?php
include( "inc/header.php" );
login_check( );
$pass = "<font color=green><strong>√</strong></font>";
$error = "<font color=red><strong>×</strong></font>";

echo "<table width=\"98%\" border=\"1\" align=\"center\" cellpadding=\"5\" cellspacing=\"0\" class=\"table\">\r\n  <tr>\r\n    <td><strong>记录信息</strong></td>\r\n  </tr>\r\n  <tr>\r\n    <td>您好：".$_SESSION['user_name']."欢迎您进入网站管理页面</td>\r\n  </tr>\r\n  <tr>\r\n    <td><span class=\"hback\">快捷菜单： <a \r\n      href=\"Admin_Set.php\">管理员管理</a>&nbsp;｜&nbsp;<a \r\n      href=\"Admin_Log.php\">日志管理</a> ｜<a href=\"Admin_Notice.php\">公告管理</a></span></td>\r\n  </tr>\r\n</table>\r\n<br />\r\n<table width=\"98%\" border=\"1\" align=\"center\" cellpadding=\"5\" cellspacing=\"0\" class=\"table\">\r\n  <tr>\r\n    <td colspan=\"2\"><strong>环境参数</strong></td>\r\n  </tr>\r\n  <tr>\r\n   <td width=\"25%\">服务器域名/IP：</td>\r\n   <td width=\"75%\">";
echo $_SERVER['SERVER_NAME'];
echo " | ";
echo $_SERVER['SERVER_ADDR'];
echo "</td>\r\n  </tr>\r\n  <tr>\r\n    <td>处理端口：</td>\r\n    <td>";
echo $_SERVER['SERVER_PORT'];
echo "</td>\r\n  </tr>  \r\n  <tr>\r\n    <td>服务器解译引擎：</td>\r\n    <td>";
echo $_SERVER['SERVER_SOFTWARE'];
echo "</td>\r\n  </tr>  \r\n  <tr>\r\n    <td>服务器操作系统：</td>\r\n    <td>";
echo PHP_OS;
echo "</td>\r\n  </tr>\r\n  <tr>\r\n    <td>站点物理路径：</td>\r\n    <td>";
echo __FILE__;
echo "</td>\r\n  </tr>\r\n    <tr>\r\n    <td>MySQL数据库支持：</td>\r\n    <td>";
echo function_exists( mysql_close ) ? $pass : $error;
echo "</td>\r\n  </tr>\r\n  <tr>\r\n    <td>允许上传文件最大值：</td>\r\n    <td>";
echo get_cfg_var( "file_uploads" ) ? get_cfg_var( "upload_max_filesize" ) : $error;
echo "</td>\r\n  </tr>\r\n  <tr>\r\n    <td>获取远程文件：</td>\r\n    <td>";
echo get_cfg_var( "allow_url_fopen" ) ? $pass : $error;
echo "</td>\r\n  </tr>\r\n  <tr>\r\n    <td>XML解析：</td>\r\n    <td>";
echo function_exists( xml_set_object ) ? $pass : $error;
echo "</td>\r\n  </tr>\r\n  <tr>\r\n    <td>SMTP支持：</td>\r\n    <td>";
echo get_cfg_var( "SMTP" ) ? $pass : $error;
echo "</td>\r\n  </tr>\r\n</table>\r\n<br />\r\n<br />";
echo "<div align='center'>".COPY."</div>";
echo "</body>\r\n</html>\r\n";

?>
